Is it possible to make accordion (Expand/Collapse) without <div> [closed]

Posted by jitendra on Stack Overflow See other posts from Stack Overflow or by jitendra
Published on 2010-03-18T15:11:44Z Indexed on 2010/03/19 3:01 UTC
Read the original article Hit count: 186

With below code..

in below code I want whole <h3> click-able but in default condition link text of right side should be shown as "open" and if accordion is open then it should be convert into "close"

in default(closed) condition

<h3>Title                                        <span>open</span></h3>
<p> user contributed content licensed under user contributed content licensed 
    user contributed content licensed under user contributed content licensed 
    user contributed content licensed under user contributed content licensed 
</p>

in open condition

  <h3>Title                                        <span>close</span></h3>
<p> user contributed content licensed under user contributed content licensed 
    user contributed content licensed under user contributed content licensed 
    user contributed content licensed under user contributed content licensed 
</p>

and if JavaScript is disable then all dive should be opened

© Stack Overflow or respective owner

Related posts about css

Related posts about XHTML